package com.chijun.mform.create;

import android.content.Context;

import com.chijun.mform.create.dialog.IGetServerPersonResult;
import com.chijun.mform.create.field.Field;
import com.chijun.mform.create.mode.FormGroup;
import com.chijun.mform.create.mode.FormIcon;
import com.chijun.mform.create.mode.FormSaveData;
import com.example.ccj.b.c.custom.tree.TreeMode;
import com.example.ccj.u.NumberUtils;

import java.util.ArrayList;
import java.util.List;

public interface ICreateFormListener {

     void getCreateFormConfig(IWaitResult iWaitResult);

    //人员列表  如果不设置会提示无相关人员
    default List<TreeMode> resultTreeModeList(IGetServerPersonResult iGetServerPersonResult){
        List<TreeMode> treeModeLists = new ArrayList<>();
        List<TreeMode> userModeList = new ArrayList<>();
        String[] buMen = new String[]{"市场部","研发部","财务部","人事部","行政部","销售部","客服部","后勤部","企划部","设计部","技术部","运营部","公关部",
                "采购部","质检部","法务部","项目部","培训部"};
        for (int i = 0; i < buMen.length; i++) {
            TreeMode treeMode = new TreeMode("985869596555749" + i,null,buMen[i],TreeMode.DATA_TYPE_MU_LU);
            treeModeLists.add(treeMode);
        }
        String[] user = new String[] {
                "曹驰珺","陆璃音","顾浅宁","许沐晨","叶吟萧","秦澜悦","萧槿悠","沈逸弦","傅凝霜","白梓澜","安素锦","贺熙羽","薛念瑶","程楚云","黄梓润",
                "莫云彻","卓婉兮","俞景澜","姜逸尘","陶星澜","余诗婉","宁悦萱","凌楚歌","钟灵犀","常书韵","韦宇澄","邹念薇","潘皓羽","邓雨薇","洪墨羽",
                "冯若琳","董子衿","邵灵犀","程梓萱","黄俊逸","袁芷兰","卢星辰","蔡婉清","覃知许","谢靖琪","苗以沫","石洛尘","叶晓冉","吕苏漾","傅静姝",
                "曾远航","孔可昕","潘言蹊","袁慕辰","丁语嫣","温锦书","邹皓阳","廖雅颂","何雨泽","梁安然","邓羽裳","韦思齐","常少轩","潘婉如","邹明哲",
                "蔡悦兮","洪逸飞","冯芷若","董宇轩","邵晴柔","程梓琪","黄梓榆","袁慕晴","卢锦兮","蔡晨逸","覃若兮","谢知韵","苗楚枫","石雨桐","叶灵均",
                "吕云舒","傅梓航","曾睿思","孔婉婉","潘皓云","袁悦然","丁锦华","温思睿","邹芷若","廖梓铭","何睿泽","梁悦心","邓楚云","韦梓润","常雅琴",
                "潘逸凡","邹思远","蔡芷若","洪锦泽","冯晓萱","董悦悦","邵逸轩","程婉宁","黄子墨","袁睿博","卢楚云","蔡梓萱","覃雅萱","谢逸尘","苗思怡",
                "石芷若","叶锦阳","邹晓羽","廖悦心","何逸凡","梁婉如","邓子墨","韦睿泽","常楚云","潘梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳",
                "段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心",
                "韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如",
                "吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽",
                "程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润",
                "蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘",
                "邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若",
                "丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽",
                "石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡",
                "常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨",
                "冯睿泽","程楚云","黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云",
                "黄梓润","蒋雅琴","彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽","程楚云","黄梓润","蒋雅琴",
                "彭逸尘","邹思远","袁芷若","丁锦阳","段晓羽","石悦心","韦逸凡","常婉如","吕子墨","冯睿泽"};
        for (int i = 0; i < user.length; i++) {
            int rangeNumber = NumberUtils.getRangeNumber(treeModeLists.size() - 1, 0);
            String pMuLu = treeModeLists.get(rangeNumber).dataId;
            TreeMode treeMode = new TreeMode("985869596555" + i,pMuLu,user[i],TreeMode.DATA_TYPE_DATA);
            userModeList.add(treeMode);
        }
        treeModeLists.addAll(userModeList);
        iGetServerPersonResult.result(userModeList);

        return treeModeLists;
    }

}
